@extends('admin.app')

@section('breadcrumb')
  <div class="bg-light lter b-b wrapper-md">
    <ol class="breadcrumb bg-light lter m-n no-padder">
      <li><a href="{{ admin_action('HomeController@index') }}">主页</a></li>
      <li><a href="{{admin_action('Web\InformationsController@index')}}">信息模板</a></li>
      <li>信息模板信息</li>
      <li class="active">{{ $information->title }}</li>
    </ol>
  </div>
@endsection

@section('content')
  <div class="panel panel-default">
    <div class="panel-heading font-bold">
      信息模板详细
    </div>
    <div class="panel-body">
      <form class="form-horizontal">
        <div class="form-group">
          <label class="col-lg-2 control-label">模板类型：</label>
          <div class="col-lg-10">
            <p class="form-control-static">  {{$information->type()->name}}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">模板标题：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{$information->title}}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">位置信息：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{$information->position()->name}}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">启用：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{$information->state?'是':'否'}}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">内容：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{!! $information->content !!}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <div class="col-lg-4 col-lg-offset-2">
            <a href="{{ admin_action('Web\InformationsController@index') }}" class="btn btn-default">返&nbsp;回</a>
          </div>
        </div>
      </form>
    </div>
  </div>
@endsection